﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HPCERP.Model;

namespace HPCERP.BusinessObject
{
    public class PhraseBO
    {
        public Phrase[] GetList()
        {
            try
            {
                hpc_erpEntities ctx = new hpc_erpEntities();
                var phrases = from p in ctx.Phrase orderby p.Id_Phrase select p;
                return phrases.ToArray();
            }
            catch (Exception ex)
            {
                LogMessage.WriteMessage(ex.Message);
                return null;
            }
        }


    }
}
